package fr.emn.nuitinfo.model;

import com.googlecode.objectify.ObjectifyService;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Id;

import fr.emn.nuitinfo.model.interfaces.ICoordonneesGPS;
import fr.emn.nuitinfo.model.interfaces.ILieu;

@Entity
public class Lieu implements ILieu {

    private ICoordonneesGPS   coordonneesGPS;
    @Id
    private String            nom;
    private static final long serialVersionUID = -4430200156395309534L;

    public Lieu() {
	ObjectifyService.register(getClass());
    }

    public Lieu(ICoordonneesGPS coordonneesGPS, String nom) {
	super();
	this.coordonneesGPS = coordonneesGPS;
	this.nom = nom;
    }

    public ICoordonneesGPS getCoordonneesGPS() {
	return coordonneesGPS;
    }

    public void setCoordonneesGPS(ICoordonneesGPS coordonneesGPS) {
	this.coordonneesGPS = coordonneesGPS;
    }

    public String getNom() {
	return nom;
    }

    public void setNom(String nom) {
	this.nom = nom;
    }

}
